package pers.ree.demo.basic;

/**
 * 接口中的非静态方法只有default（public）和private两种
 * 静态方法也只有static（public）和private static两种
 */
public interface InterfaceMethodDemoIntf {

    default void defaultPrint() {
        System.out.println("This is default method begin...");
        privatePrint();
        System.out.println("This is default method end...");
    }

    private void privatePrint() {
        System.out.println("This is private method");
    }

    static void staticPrint() {
        System.out.println("This is static method begin...");
        privateStaticPrint();
        System.out.println("This is static method end...");
    }

    private static void privateStaticPrint() {
        System.out.println("This is private static method");
    }
}
